#!/bin/bash

	if [ $1 -eq -1 ];
	then
		echo "Cleaning..."
		rm queries/*

	else

	echo "Creating "$1" files..."
		for((i=0; i < $1; i++));
		do
			echo "<?xml version=\"1.0\"?><captureQuery><code>1</code><user>stevekmew</user><team>Red</team><timestamp>1335884134</timestamp><latitude>28.0109</latitude><longitude>-26.2609</longitude><queryID>0</queryID></captureQuery>" > queries/query$i.xml


		done
	fi
